#include"ProcessPool.hpp"
//#include"Task.hpp"

int main()
{
        //创建进程池对象
        ProcessPool pool(gdefaultnum);
        //启动进程池
        pool.Start();

        //自动派发任务
        int cnt = 10;
        while(cnt--)
        {
                //int task_code = 1;
                pool.Run();
                sleep(1);
        }

        //回收进程
        pool.Stop();
        return 0;

}   